<script setup>
import {inject} from 'vue'


const msg = inject("msg");

console.log("msg",msg);

</script>

<template>
    <div>
        <h1>子组件</h1>
        <p>msg:{{msg}}</p>
    </div>
</template>

<style lang="css" scoped>
    
</style>
